mixin foreign-block({x, y, width, height, degrees, left, top, direct})
  -var w = width || 0
  -var h = height || 0
  -var x = x || 0
  -var y = y || 0
  -var matrix = `1,0,0,1,${left || 0}, ${top || 0}`
  if degrees
    -var radions = degrees * (Math.PI/180)
    -var cos = Math.cos(radions)
    -var sin = Math.sin(radions)
    if direct == 'right'
      -matrix = `${sin}, -${cos},${cos},${sin},${left || 0},${top || 0}`
    else
      -matrix = `${cos}, ${sin}, -${sin}, ${cos}, ${left || 0}, ${top || 0}`

  g
    foreignObject(x=`${x}`, y=`${y}`, width=`${w}`, height=`${h}px` transform=`matrix(${matrix})`)
      block
